<?php


namespace App\Http\Requests;


class PlatformUpdateRequest  extends BaseRequest
{
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $reture = [
            'display_name' => 'required|unique:platform,display_name,'.$this->get('id').',id',
            'name'  => 'required|max:14|unique:platform,name,'.$this->get('id').',id',
        ];

        return $reture;
    }
}